package com.deep.deepenterpise.common.enums;

import lombok.Getter;

/**
 * @author xyz
 * @version 1.0
 * @title DrOrderTypeEnum
 * @description
 * @create 2024/5/20 16:18
 */
@Getter
public enum DrOrderTypeEnum {
    NORMAL(1, "CLM"),
    CHECK_HOUSE(8, "CHAJ"),

    DANGER_BOTTLE(1, "CDB"),
    DANGER_HOUSE(2, "CDH"),

    DANGER_SLAVE(1, "CDS"),

    ;

    private final Integer drType;
    private final String drCode;

    DrOrderTypeEnum(Integer drType, String drCode) {
        this.drType = drType;
        this.drCode = drCode;
    }


    public boolean compare(Integer drType) {
        return this.drType.equals(drType);
    }

    public boolean compare(DrOrderTypeEnum drTypeEnum) {
        return this.compare(drTypeEnum.getDrType());
    }
}
